package top.korori.system.entity.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel("修改密码参数")
@Getter
@Setter
public class PasswordBo {


    @NotBlank(message = "旧密码不能为空")
    @ApiModelProperty("旧的密码")
    public String oldPassword;


    @Length(min = 6,message = "新密码最小6位")
    @Length(max = 12,message = "新密码最大12位")
    @ApiModelProperty("新密码")
    public String newPassword;

}
